- content_for :meta do
  %meta{:name => "Description", :content => @video.description}
  %meta{:name => "Abstract", :content => @video.description}
  %meta{:name => "Keywords", :content => @video.title}
- content_for :head do
  = javascript_include_tag "AC_ActiveX"
  = javascript_include_tag "AC_RunActiveContent"
- content_for :title do
  = @video.title
- if logged_in? and current_user.is_admin?
  - content_for :admin_nav do
    %div.edit
      [
      %a{:href => edit_video_url(@video), :title => "Edit " + @video.title}edit
      ]
%div.video_title_container
  %div.video_title
    %h1.page_title=@video.title
%div.flash_video_container
  %div.flash_video
    %script{:type => "text/javascript"}
      = "AC_AX_RunContent( 'classid','clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B','width','853','height','496','codebase','http://www.apple.com/qtactivex/qtplugin.cab','src','" + @video.public_filename.to_s + "','autoplay','false','controller','true','pluginspage','http://www.apple.com/quicktime/download/' );"
    %noscript
      %object{:classid => "clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B", :width => "853", :height => "514", :codecase => "http://www.apple.com/qtactivex/qtplugin.cab"}
        %param{:name => "SRC", :value => @video.public_filename}
        %param{:name => "AUTOPLAY", :value => "true"}
        %param{:name => "CONTROLLER", :value => "true"}
        %embed{:src => @video.public_filename, :width => "853", :height => "514", :autoplay => "true", :controller => "true", :pluginspace => "http://www.apple.com/quicktime/download/"}
  %div.video_description
    %p=@video.description